DBExec
DBExec
Initiate execution of a query long sessID ; is the session ID
DBAsyncParmBlkPtr asyncPB; is a pointer to the asynchronous parameter
block
The DBExec function initiates execution of a query that you have sent to the data server. Use the DBState function to determine the status of a query after you have initiated execution.
sessID is the session ID that was returned by the DBInit function. asyncPB is a pointer to the asynchronous parameter block. If you do not want
to call the function asynchronously, set this parameter to NIL
noErr (0) Execution has begun
rcDBError (-802) Error trying to begin execution
rcDBBadSessID -(806) Session ID is invalid
rcDBAsyncNotSupp (-809) The database extension does not support asynchronous
calls
rcDBPackNotInited (-813) The InitDBPack function has not yet been called